module.exports = (path, key, value) => {
  const { writeFileSync } = require('fs')
  const packageJson = require(path)
  packageJson[key] = value
  return writeFileSync(path, `module.exports = ${JSON.stringify(packageJson, '', '\t')}`)
}
